package org.yoao.moneymachine.page;

import java.util.List;
import java.util.Map;

import org.yoao.crm.page.framework.AbstractViewPage;
import org.yoao.moneymachine.business.impl.BulletinServiceImpl;
import org.yoao.moneymachine.business.service.IBulletinService;

/**
 * @author  Weishion.Yi
 * @description 
 * @date 2010-10-4 下午03:39:00
 */
public class NewsPage extends AbstractViewPage {
	private IBulletinService bulletinService = new BulletinServiceImpl();
	
	@Override
	protected List queryPageList(int startRow, int endRow, Map map) throws Exception{
		return bulletinService.view(startRow, endRow, map);
	}

	@Override
	protected int queryTotalRows(Map map) throws Exception{
		return bulletinService.getDataCount(map);
	}
}
